/****************************************************************************
 *
 * Copyright (C) 2003-2008 Los Alamos National Security, LLC
 *                         Packet Analytics Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License Version 2 as
 * published by the Free Software Foundation.  You may not use, modify or
 * distribute this program under any other version of the GNU General
 * Public License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 ****************************************************************************/
package nfse;



/****************
 * A data structure for storing information about a tool (data type).
 *  
 * @author 
 *
 * This code is the property of Los Alamos National Laboratory
 * and the University of California, Copyright 2005
 */
public class ToolInfo {
    
    /***********
     * Identifier of this tool in the system metadata
     */
	private int id = -1;
	
	/************
	 * Name of this tool from the system metadata
	 */
	private String name = "";
	
	/************
	 * The file extension (if any) of this data type (e.g. ".sv4" or ".sv5" for Nethead data)
	 */
	private String storage = "";

	/*************
	 * Sets the attributes of the new instance according to the parameters
	 * 
	 * @param id The data type identifier for the new instance
	 * @param name The tool name for the new instance
	 * @param storgae The file extension for this data type if the data is stored in flat files
	 */
	public ToolInfo(int id, String name, String storage) {
		this.setId(id);
		this.setName(name);
		this.setStorage(storage);
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param storage the storage to set
	 */
	public void setStorage(String storage) {
		this.storage = storage;
	}

	/**
	 * @return the storage
	 */
	public String getStorage() {
		return storage;
	}

}